@import "@/styles/variables";

.tag-checkbox {
  &.small{
    font-size: @size-xs;
    padding: 4px 12px;

  }
  .tag-item {
    box-sizing: border-box;
    background-color: #fff;
    border: 1px dashed #ccc;
    transition: all 0.1s ease-in-out;
    padding: 6px 12px;
    cursor: pointer;
    margin-right: 16px;
    margin-bottom: 8px;
    border-radius: 2px;
    color: @default-color;
    box-shadow: @light-shadow;
    flex: 0 0 auto;
    position: relative;
    .tag-item-sub {
      position: absolute;
      width: @size-xs;
      height: @size-xs;
      border-radius: 50%;
      background-color: @light-primary-bg;
      color: @primary-color;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 2px;
      z-index: 9;
      right: -6px;
      top: -6px;
      font-size: @size-xs;
      border: 1px solid @primary-color;
    }
    &.disabled {
      opacity: 0.6;
    }
    &.checked {
      border: none;
      background-color: @light-primary-bg;
      color: @primary-color;
    }
    &:last-child {
      margin-right: 0;
    }
  }
}
